/**
 * 配置文件入口
 * 根据 NODE_ENV 自动选择对应的配置文件
 */
const development = require('./development');
const production = require('./production');

const env = process.env.NODE_ENV || 'development';

const configs = {
  development,
  production,
};

const config = configs[env] || configs.development;

// 添加当前环境标识
config.ENV = env;

module.exports = config;

